package com.hl.domain;

import java.sql.Time;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 秒杀活动对象 seckill_activities
 * 
 * @author vv
 * @date 2025-08-08
 */
public class SeckillActivities extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private String id;

    /** 活动名称 */
    @Excel(name = "活动名称")
    private String activityName;

    /** 开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startTime;

    /** 申请截止时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "申请截止时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date applyEndTime;

    /** 活动状态：0-未开始 1-已开始 2-已结束（可根据实际枚举值调整） */
    @Excel(name = "活动状态：0-未开始 1-已开始 2-已结束", readConverterExp = "可=根据实际枚举值调整")
    private Long activityStatus;


    /** 时间段 */
    private Time timeSegment;

    public Time getTimeSegment() {
        return timeSegment;
    }

    public void setTimeSegment(Time timeSegment) {
        this.timeSegment = timeSegment;
    }

    /** 申请规则 */
    @Excel(name = "申请规则")
    private String applyRule;

    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }

    public void setActivityName(String activityName) 
    {
        this.activityName = activityName;
    }

    public String getActivityName() 
    {
        return activityName;
    }

    public void setStartTime(Date startTime) 
    {
        this.startTime = startTime;
    }

    public Date getStartTime() 
    {
        return startTime;
    }

    public void setApplyEndTime(Date applyEndTime) 
    {
        this.applyEndTime = applyEndTime;
    }

    public Date getApplyEndTime() 
    {
        return applyEndTime;
    }

    public void setActivityStatus(Long activityStatus) 
    {
        this.activityStatus = activityStatus;
    }

    public Long getActivityStatus() 
    {
        return activityStatus;
    }

    public void setApplyRule(String applyRule) 
    {
        this.applyRule = applyRule;
    }

    public String getApplyRule() 
    {
        return applyRule;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("activityName", getActivityName())
            .append("startTime", getStartTime())
            .append("applyEndTime", getApplyEndTime())
            .append("activityStatus", getActivityStatus())
            .append("applyRule", getApplyRule())
            .toString();
    }
}
